
export const getToken = () => {
    return uni.getStorageSync('token')
}
export const setToken = (token: string) => {
    uni.setStorageSync('token', token)
}
export const removeToken = () => {
    uni.removeStorageSync('token')
}

export const getUserInfo = () => {
    return JSON.parse(uni.getStorageSync('userInfo'))
}
export const setUserInfo = (userInfo: string) => {
    uni.setStorageSync('userInfo', userInfo)
}
export const removeUserInfo = () => {
    uni.removeStorageSync('userInfo')
}
